Skip to content

Conversation

@Houwie7000
Copy link
Collaborator

@Houwie7000 Houwie7000 commented Dec 4, 2025

I have a JIRA ticket

  • branch and/or PR name(s) include(s) JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected

Notable changes for users:

  • LHCfills page now has a total run duration filter.

Notable changes for developers:

  • GetAllLhcFillsUseCase.js will now execute a JOIN on statistics (fill_statistics) when runDuration and runDurationOperator are defined in the filter.

Changes made to the database:
-None.

@Houwie7000 Houwie7000 requested a review from isaachilly December 4, 2025 13:18
@Houwie7000 Houwie7000 self-assigned this Dec 4, 2025
@Houwie7000 Houwie7000 added frontend backend javascript Pull requests that update Javascript code labels Dec 4, 2025
@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

❌ Patch coverage is 64.10256% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.59%. Comparing base (5fd8dba) to head (63f57da).

Files with missing lines Patch % Lines
lib/database/utilities/QueryBuilder.js 55.55% 8 Missing ⚠️
...omponents/Filters/LhcFillsFilter/durationFilter.js 0.00% 4 Missing ⚠️
...ws/LhcFills/ActiveColumns/lhcFillsActiveColumns.js 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2038      +/-   ##
==========================================
+ Coverage   45.58%   45.59%   +0.01%     
==========================================
  Files        1031     1031              
  Lines       17172    17205      +33     
  Branches     3123     3133      +10     
==========================================
+ Hits         7827     7844      +17     
- Misses       9345     9361      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Houwie7000 Houwie7000 force-pushed the feature/O2B-1505/lhcfills-beam-duration-filter branch from 23dbb7b to 11c1f9d Compare December 8, 2025 14:15
@Houwie7000 Houwie7000 force-pushed the feature/O2B-1506/lhcfills-run-duration-filter branch 2 times, most recently from fd1be9f to 2c6fee8 Compare December 8, 2025 15:21
@Houwie7000 Houwie7000 marked this pull request as ready for review December 9, 2025 14:54
@Houwie7000 Houwie7000 requested a review from graduta as a code owner December 9, 2025 14:54
@Houwie7000 Houwie7000 force-pushed the feature/O2B-1505/lhcfills-beam-duration-filter branch from 5c9fecd to 950022d Compare December 11, 2025 11:20
Houwie7000 and others added 20 commits December 18, 2025 15:04
…ature/O2B-1506/lhcfills-run-duration-filter

update from upstream
…ature/O2B-1506/lhcfills-run-duration-filter

update from upstream
…ature/O2B-1506/lhcfills-run-duration-filter

update from upstream
Base automatically changed from feature/O2B-1505/lhcfills-beam-duration-filter to main January 21, 2026 14:41
* @param {TextComparisonFilterModel} runDurationFilterModel runDurationFilterModel
* @returns {Component} the text field
*/
export const runDurationFilter = (runDurationFilterModel) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I think could me made into a generic function given it is the same as beamDurationFilter

Copy link
Collaborator

@isaachilly isaachilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but will add my changes next commit

Introduced greaterThanOrNull and lowerThanOrNull methods in QueryBuilder to handle cases where 0 is stored as null in the database. Used these methods instead of editing _or and applyOperation methods.

Added tests to check <= and >= in the usecase work correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend frontend javascript Pull requests that update Javascript code

Development

Successfully merging this pull request may close these issues.

4 participants